package com.bussiness.system.query.sys;

import com.baomidou.mybatisplus.annotations.TableId;
import com.bussiness.system.entity.UserEntity;
import com.bussiness.system.form.UserEntityAuditForm;
import com.bussiness.system.util.Query;
import com.bussiness.system.util.TransferUtil;
import org.hibernate.validator.constraints.NotBlank;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Auther: xlr
 * @Date: 2018/8/11 19:28
 * @Description:
 */
public class SsSysDictQuery extends Query {

    private Integer id;
    /**
     * 字典名称
     */
    @NotBlank(message="字典名称不能为空")
    private String name;
    /**
     * 字典类型
     */
    @NotBlank(message="字典类型不能为空")
    private String type;
    /**
     * 字典码
     */
    @NotBlank(message="字典码不能为空")
    private Integer code;
    /**
     * 字典值
     */
    @NotBlank(message="字典值不能为空")
    private String value;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    protected Map<String, Object> beanToMap() {
        Map<String,Object> map = TransferUtil.beanToMap( this );
        return map;
    }
}
